#!/bin/bash

FILE_NAME=200GB.dat
COUNT=$(echo 1024*1024*1024*200/10485760 | bc)

# for i in {1..${COUNT}}; do
for ((i=1; i<=${COUNT}; i++)); do
    openssl rand -out temp.bin 10485760  # 每次生成 10MB
    dd if=temp.bin of=${FILE_NAME} bs=1M conv=notrunc oflag=append
done
rm temp.bin
